
# 定义所有源文件变量
aux_source_directory(. SRC_LIST)
aux_source_directory(./db DB_LIST)
aux_source_directory(./redis REDIS_LIST)
aux_source_directory(./model MODEL_LIST)
project(ChatServer)

# 指定生成可执行文件
add_executable(${PROJECT_NAME} ${SRC_LIST} ${DB_LIST} ${MODEL_LIST} ${REDIS_LIST})
# 指定可执行文件链接时需要依赖的库文件

target_link_libraries(${PROJECT_NAME} muduo_net muduo_base pthread hiredis mysqlclient dl)